package com.calvin.study.event.publisher;

import org.springframework.stereotype.Component;

import com.calvin.study.event.base.BaseEvent;

import cn.hutool.extra.spring.SpringUtil;

@Component
public class BaseEventPublisher<T> extends AbstractEventPublisher<T> {

	@Override
	public void publishEvent(T t) {
		SpringUtil.publishEvent(new BaseEvent<T>(this, t));
	}
}
